﻿using Cookbook.Common;

namespace Cookbook.Services.Core.Domain
{
    public class CookbookRule : Rule
    {
        public static CookbookRule RecipeTitleIsRequired = new CookbookRule("RecipeTitleIsRequired");
        public static CookbookRule RecipeDescriptionIsRequired = new CookbookRule("RecipeDescriptionIsRequired");
        public static CookbookRule RecipeTitleMustBeUnique = new CookbookRule("RecipeTitleMustBeUnique");
        public static CookbookRule RecipeTitleMustBeShort = new CookbookRule("RecipeTitleMustBeShort");
        public static CookbookRule ProductCannotBeRemovedIfStillUsed = new CookbookRule("ProductCannotBeRemovedIfStillUsed");

        private CookbookRule(string code) : base(code)
        {
        }
    }
}